from django.db import models
from meiduo_mall.utils.models import BaseModel
from users.models import User

class OAuthQQUser(BaseModel):
    """
    QQ登录用户数据
    """
    # 指定绑定的用户
    user = models.ForeignKey(User)
    # ｑｑ授权帐号的唯一标识
    openid = models.CharField(max_length=100)
    class Meta:
        db_table = 'tb_oauth_qq'

